// 药品状态
export type MedicineStatus = 'normal' | 'disabled'

// 药品信息
export interface Medicine {
  id: number
  code: string
  name: string
  categoryId: number
  categoryName: string
  specification: string
  unit: string
  manufacturer: string
  price: number
  stock: number
  minStock: number
  status: MedicineStatus
  remark?: string
  createTime: string
  updateTime: string
}

// 查询参数
export interface MedicineQuery {
  name?: string
  categoryId?: number
  status?: MedicineStatus
  pageNum: number
  pageSize: number
}

// 新增/编辑药品表单
export interface MedicineForm {
  id?: number
  code: string
  name: string
  categoryId: number
  specification: string
  unit: string
  manufacturer: string
  price: number
  minStock: number
  status: MedicineStatus
  remark?: string
} 